<?php

/**
 * 快递vip折扣
 */
class Application_Model_ExpressVip extends Application_Model_DomainObject{

    protected $_id;         //自增id
    protected $_expressId;  //关联uuch_express.id
    protected $_type;       //1.首重2.续重3.公斤
    protected $_advanced;   //高级会员
    protected $_gold;       //黄金会员
    protected $_platinum;   //铂金会员
    protected $_jewel;      //钻石会员

    const TYPE_YKG = 1;         //首重
    const TYPE_CONTINUED = 2;   //续重
    const TYPE_KG = 3;          //公斤


    /**
     * 获取数据
     * @return list
    */
    public static function getAll($condition = array())
    {
        if(!is_array($condition)){
            return false;
        }
        return self::getDao()->queryAll($condition , ' type asc ');
    }

    /**
     * 查询单条记录
    */
    public static function getInfo($condition = array())
    {
        if(!is_array($condition)){
            return false;
        }
        return self::getDao()->queryOne($condition);
    }
}